﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.IT
{
    /// <summary>
    /// 货架上存放货物存明细表
    /// </summary>
    [Table("IT_LocalMaterial_S")]
    public partial class IT_LocalMaterial_S
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 仓库ID
        /// </summary>
        public String StorId { get; set; }

        /// <summary>
        /// 货位ID
        /// </summary>
        public String LocalId { get; set; }

        /// <summary>
        /// 批号
        /// </summary>
        public String Batch { get; set; }

        /// <summary>
        /// 数量_新
        /// </summary>
        public Double? Nums_N { get; set; }

        /// <summary>
        /// 数量_旧
        /// </summary>
        public Double? Nums_O { get; set; }

        /// <summary>
        /// 剩余数量
        /// </summary>
        public Double? CreateNums { get; set; }

        /// <summary>
        /// 创建者ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 标识:0-正常；1-下架；2-占用
        /// </summary>
        public Int32 UnloadFlag { get; set; }

        /// <summary>
        /// 货区
        /// </summary>
        public String AreaId { get; set; }

        /// <summary>
        /// 货架
        /// </summary>
        public String RackId { get; set; }

        /// <summary>
        /// 包ID
        /// </summary>
        public String PackId { get; set; }

        /// <summary>
        /// 收货单Id(关联TD_Receiving)
        /// </summary>
        public string ReceId { get; set; }

    }
}